package com.ypj.indusynergyems.dao.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.checkerframework.checker.units.qual.A;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName("company")
public class CompanyEntity {

    /**
     * company_id
     */
    private Integer companyId;

    /**
     * 公司编号
     */
    private String companyNum;

    /**
     * company_name
     */
    private String companyName;

    /**
     * phone
     */
    private String phone;

    /**
     * address
     */
    private String address;

    /**
     * 法定代表人
     */
    private String legalMan;

    /**
     * 统一社会信用代码
     */
    private Long socailCredit;

    /**
     * 成立时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date makeTime;

    /**
     * 账号状态
     */
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

}
